# 列表
list1 = ["test1", "test2", 100, 1000, True]
for list in list1:
    print(list)






# 元组 tuple
tups = ('tup1', 'tup2', True, 0.12)
for tup in tups:
    print(tup)

# 字典
dicts = {"dict1": 123, "dict2": True, "dict3": "你好"}

for key, value in dicts.items():
    print(f"{key}: {value}")
for key in dicts:
    print(f"{key}: {dicts[key]}")

# 集合
basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
print(basket)  # 这里演示的是去重功能

basket.add('haha')
print(basket)

print("------------------------------------")
listTest = ["test", tups, dicts, basket]
for demo in listTest:
    if isinstance(demo,tuple):
        print(f'这是元组：{demo}')


for i in range(10):
    print(i)
# 从1开始，到10（不包括10），步长为2
start = 179046
end = start + 100

for i in range(start, end):
    print(f"当前循环索引: {i}")

